import request from '@/utils/request'

// 查询上报日志列表
export function listReportlog(query) {
  return request({
    url: '/buss/reportlog/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/buss/reportlog/initBean',
        method: 'post'
    })
}

// 查询上报日志详细
export function getReportlog(reportlogid) {
  return request({
    url: '/buss/reportlog/' + reportlogid,
    method: 'get'
  })
}

// 新增上报日志
export function addReportlog(data) {
  return request({
    url: '/buss/reportlog',
    method: 'post',
    data: data
  })
}

// 修改上报日志
export function updateReportlog(data) {
  return request({
    url: '/buss/reportlog',
    method: 'put',
    data: data
  })
}

// 删除上报日志
export function delReportlog(reportlogid) {
  return request({
    url: '/buss/reportlog/' + reportlogid,
    method: 'delete'
  })
}
